﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
namespace HA.ModFlow.Controls.Windows
{
    class TransientCovert:IValueConverter 
    {

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if ((bool)value)
            {
                return "constant";
            }
            else
            {
                return "transient";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if ((string)value == "constant")
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
